package com.gopay.common.domain.cert;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import com.gopay.common.domain.BaseEntity;

/**
 * 商户服务器证书更换申请实体类
 * CorpMsgSignCertChange.java
 * @author zhoutong
 *  @2016年10月17日 上午11:07:48  www.gopay.com.cn Inc.All rights reserved.
 */
@Entity
@Table(name = "CORP_MSG_SIGN_CERT_CHANGE")
public class CorpMsgSignCertChange extends BaseEntity{

    /**
	 * 
	 */
	private static final long serialVersionUID = -8118473622755869377L;

	/**
     * 客户服务器证书主键
     */
    @Id
    @SequenceGenerator(name = "CORP_MSG_SIGN_CERT_CHANGE_SEQ_GENERATOR", sequenceName = "CORP_MSG_SIGN_CERT_CHANGE_SEQ", allocationSize = 1)
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "CORP_MSG_SIGN_CERT_CHANGE_SEQ_GENERATOR")
    @Column(name = "ID")
    private Long id;

    @Column(name="CUST_ID", nullable = false, length = 10)
    private String custId;
    
    @Column(name="CUST_EMAIL")
    private String custEmail;//账户名称
    @Column(name="CUST_NAME")
    private String custName;//客户名称
    @Column(name="APPLY_TS")
    private Date applyTs;//更换申请日期
    @Column(name="CHANGE_REASON")
    private String changeReason;//更换原因
    @Column(name="RECREATE_TS")
    private Date recreateTs;//重新生成日期
    @Column(name="RECREATE_OPRID")
    private String recreateOperId;//重新生成操作员ID
    @Column(name="RECREATE_OPRNM")
    private String recreateOperNm;//重新生成操作员名称
    @Column(name="OLD_VALID_FROM")
    private Date oldValidFrom;//原证书申请日期
    @Column(name="OLD_VALID_TO")
    private Date oldValidTo;//原证书过期日期
    @Column(name="NEW_VALID_FROM")
    private Date newValidFrom;//新证书申请日期
    @Column(name="NEW_VALID_TO")
    private Date newValidTo;//新证书过期日期
    @Column(name="APPLY_STAT")
    private String stat;//申请状态 0：未重新生成 1：已重新生成
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getCustId() {
		return custId;
	}
	public void setCustId(String custId) {
		this.custId = custId;
	}
	public String getCustEmail() {
		return custEmail;
	}
	public void setCustEmail(String custEmail) {
		this.custEmail = custEmail;
	}
	public String getCustName() {
		return custName;
	}
	public void setCustName(String custName) {
		this.custName = custName;
	}
	public Date getApplyTs() {
		return applyTs;
	}
	public void setApplyTs(Date applyTs) {
		this.applyTs = applyTs;
	}
	public String getChangeReason() {
		return changeReason;
	}
	public void setChangeReason(String changeReason) {
		this.changeReason = changeReason;
	}
	public Date getRecreateTs() {
		return recreateTs;
	}
	public void setRecreateTs(Date recreateTs) {
		this.recreateTs = recreateTs;
	}
	public String getRecreateOperId() {
		return recreateOperId;
	}
	public void setRecreateOperId(String recreateOperId) {
		this.recreateOperId = recreateOperId;
	}
	public String getRecreateOperNm() {
		return recreateOperNm;
	}
	public void setRecreateOperNm(String recreateOperNm) {
		this.recreateOperNm = recreateOperNm;
	}
	public Date getOldValidFrom() {
		return oldValidFrom;
	}
	public void setOldValidFrom(Date oldValidFrom) {
		this.oldValidFrom = oldValidFrom;
	}
	public Date getOldValidTo() {
		return oldValidTo;
	}
	public void setOldValidTo(Date oldValidTo) {
		this.oldValidTo = oldValidTo;
	}
	public Date getNewValidFrom() {
		return newValidFrom;
	}
	public void setNewValidFrom(Date newValidFrom) {
		this.newValidFrom = newValidFrom;
	}
	public Date getNewValidTo() {
		return newValidTo;
	}
	public void setNewValidTo(Date newValidTo) {
		this.newValidTo = newValidTo;
	}
	public String getStat() {
		return stat;
	}
	public void setStat(String stat) {
		this.stat = stat;
	}
    
    
}
